package com.zhihuishu.micro.course.service.impl;

import com.zhihuishu.micro.course.dto.TreenityDto;
import com.zhihuishu.micro.course.service.TreenityDBService;

import java.util.List;

/**
 * @author Jiangli
 * @date 2016/10/20 9:33
 *
 * @see TreenityDBService
 */
public abstract class BaseTreenityServiceDBImpl<DTO extends TreenityDto,MODEL> extends  BaseService implements TreenityDBService<DTO,MODEL> {

    @Override
    public List<DTO> list(final long courseId) {
        List<Integer> listChapterIds = listDtoIds(courseId);
        List<DTO> list = list(listChapterIds);
        return list;
    }


}
